﻿$(document).ready(function () {    
    if ("#Players") {
        var clubId = $("#ClubID").val();
        $.get("Club/ClubPlayers", { ClubID: clubId }, function (data) {
            $("#Players").html(data);
        });

        //show user other clubs within the city if he clicks on "Looking for partner"        
        var cityId = $("#CityID").val();
        $.get("/Club/CityClubs", { CityID: cityId, ClubID : clubId }, function (data) {
            $("#OtherClubs").show("slow").html(data);
        });
    }   
});